A very comprehensive reference
  http://brainstormsandraves.com/archives/2005/10/09/htaccess/